﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ErrorType.cs" company="Elilink">
//   Defor
// </copyright>
// <summary>
//   Enum ErrorType for <see cref="OperationResult" />
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BusinessLayer.Enums
{
    using BusinessLayer.Results;

    /// <summary>
    ///     Enumeration for <see cref="OperationResult" />
    /// </summary>
    public enum ErrorType
    {
        /// <summary>
        ///     If no error occur
        /// </summary>
        NoError = 0, 

        /// <summary>
        ///     If object already exists in database
        /// </summary>
        AlreadyExists = 1, 

        /// <summary>
        ///     If object was not found in database
        /// </summary>
        ObjectNotFound = 2, 

        /// <summary>
        ///     If error occurs while parsing xml document
        /// </summary>
        ParseError = 3, 

        /// <summary>
        ///     If target system name is not specified for updatable project or target
        /// </summary>
        TargetSystemNameNotSpecified = 4, 

        /// <summary>
        ///     If project name is not specified for updatable project
        /// </summary>
        ProjectNameNotSpecified = 5
    }
}